<script>
xn_read_unread({"<?php echo $tid;?>": "<?php echo $thread['last_date'];?>"}, <?php echo $tid;?>);
</script>